import { RouteRecordRaw } from 'vue-router';

const routeList: Array<RouteRecordRaw> = [
    // 系统默认路由 ------------------START-----------------------------
    {
        path: '/index',
        name: 'Index',
        component: () => import("../views/app/Index.vue"),
        meta: {
            title: "首页",
            keepAlive: true,
        },
    },
    {
        path: '/user-info',
        name: 'UserInfo',
        component: () => import("../views/app/userInfo/UserInfo.vue"),
        meta: {
            title: "个人中心",
            keepAlive: true,
        },
    },
    {
        path: '/theme',
        name: 'Theme',
        component: () => import("../views/app/Theme.vue"),
        meta: {
            title: "系统主题",
            keepAlive: true,
        },
    },
    // ----------------------END-----------------------------------------------
    {
        path: '/branch',
        name: 'Branch',
        component: () => import("../views/app/Branch.vue"),
        meta: {
            title: "部门机构",
            keepAlive: true,
        },
    },
    {
        path: '/account',
        name: 'Account',
        component: () => import("../views/app/Account.vue"),
        meta: {
            title: "用户账号",
            keepAlive: true,
        },
    },
    {
        path: '/users',
        name: 'Users',
        component: () => import("../views/app/Users.vue"),
        meta: {
            title: "用户权限",
            keepAlive: true,
        },
    },
    {
        path: '/roles',
        name: 'Roles',
        component: () => import("../views/app/Roles.vue"),
        meta: {
            title: "权限角色",
            keepAlive: true,
        },
    },
    {
        path: '/api',
        name: 'Api',
        component: () => import("../views/app/Api.vue"),
        meta: {
            title: "数据权限",
            keepAlive: true,
        },
    },
    {
        path: '/auth',
        name: 'Auth',
        component: () => import("../views/app/Auth.vue"),
        meta: {
            title: "菜单权限",
            keepAlive: true,
        },
    },
    {
        path: '/folder',
        name: 'Folder',
        component: () => import("../views/app/file/Folder.vue"),
        meta: {
            title: "文件夹",
            keepAlive: true,
        },
    },
    {
        path: '/file',
        name: 'File',
        component: () => import("../views/app/file/File.vue"),
        meta: {
            title: "文件",
            keepAlive: true,
        },
    },
    {
        path: '/dict',
        name: 'Dict',
        component: () => import("../views/app/Dict.vue"),
        meta: {
            title: "字典管理",
            keepAlive: true,
        },
    },
    {
        path: '/sys-config',
        name: 'SysConfig',
        component: () => import("../views/app/SysConfig.vue"),
        meta: {
            title: "系统设置",
            keepAlive: true,
        },
    },
    {
        path: '/notice',
        name: 'Notice',
        component: () => import("../views/app/Notice.vue"),
        meta: {
            title: "通知公告",
            keepAlive: true,
        },
    },
    {
        path: '/log-login',
        name: 'LogLogin',
        component: () => import("../views/app/LogLogin.vue"),
        meta: {
            title: "登陆日志",
            keepAlive: true,
        },
    },
    {
        path: '/log-oper',
        name: 'LogOper',
        component: () => import("../views/app/LogOper.vue"),
        meta: {
            title: "操作日志",
            keepAlive: true,
        },
    },
    {
        path: '/log-system',
        name: 'LogSystem',
        component: () => import("../views/app/LogSystem.vue"),
        meta: {
            title: "系统日志",
            keepAlive: true,
        },
    }

    // ==========================业务路由=================================================
];

export default routeList;
